// pages/underwear/underwear.js
Page({
  data: {
    "banner": [
      {
        "id": 1,
        "name": "[三只松鼠-零食大红包]豪华包装年货小吃吃货一箱整箱批发混合装",
        "pic_url": "https://gaitaobao1.alicdn.com/tfscom/i2/2923562165/TB27Zn4XbplpuFjSspiXXcdfFXa_!!2923562165.jpg_300x300q90.jpg",
        "price": "21.90",
        "paymentNumber": 1699,
      },
      {
        "id": 2,
        "name": "梅类零食蜜饯世家笑喔喔九制梅肉180G梅子干果梅干特产",
        "pic_url": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2154253524,2955794545&fm=27&gp=0.jpg",
        "price": "23.90",
        "paymentNumber": 1099,
      },
      {
        "id": 3,
        "name": "散称金桔干 蜜饯干果话梅类零食5斤 包邮全国",
        "pic_url": "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1981372823,4109610976&fm=27&gp=0.jpg",
        "price": "19.90",
        "paymentNumber": 1019,
      },
      {
        "id": 4,
        "name": "特产红枣类产品即食枣上好送女友休闲零食健康零食枣制品干果",
        "pic_url": "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3059188765,2694054328&fm=27&gp=0.jpg",
        "price": "25.90",
        "paymentNumber": 989,
      },
      {
        "id": 5,
        "name": "[三只松鼠-零食大红包]豪华包装年货小吃吃货一箱整箱批发混合装",
        "pic_url": "https://gaitaobao1.alicdn.com/tfscom/i2/2923562165/TB27Zn4XbplpuFjSspiXXcdfFXa_!!2923562165.jpg_300x300q90.jpg",
        "price": "21.90",
        "paymentNumber": 1699,
      },
      {
        "id": 2,
        "name": "梅类零食蜜饯世家笑喔喔九制梅肉180G梅子干果梅干特产",
        "pic_url": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2154253524,2955794545&fm=27&gp=0.jpg",
        "price": "23.90",
        "paymentNumber": 1099,
      }
    ]
  },
  //tabBar页面的跳转
  storeTap: function () {
    wx.switchTab({
      url: '../store',
    })
  },
  // 非tabBar页面的跳转
  // 链接食品生鲜页面
  foodTap: function () {
    wx.navigateTo({
      url: '../food/food'
    })
  },
  // 链接美妆个护页面
  makeupTap: function () {
    wx.navigateTo({
      url: '../makeup/makeup'
    })
  },
  // 链接母婴童装页面
  clothingTap: function () {
    wx.navigateTo({
      url: '../clothing/clothing'
    })
  },
  // 链接百货家纺页面
  departmentTap: function () {
    wx.navigateTo({
      url: '../department/department'
    })
  }
})